package com.hbnu.controller;

import com.hbnu.pojo.Result;
import com.hbnu.pojo.Util;
import com.hbnu.service.impl.UtilService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class UtilController {
    @Autowired
    private UtilService utilService;

    @PostMapping("/util")
    public Result util(@RequestBody Util util)
    {
        utilService.insertMockGoodList(util);
        return Result.success();
    }
}
